<%@ Page Language="C#" MasterPageFile="~/Management.master" AutoEventWireup="true" CodeFile="ActionTaken.aspx.cs" Inherits="ActionTaken" Title="Untitled Page" %>
<%@ Register Assembly="EclipseWebSolutions.DatePicker" Namespace="EclipseWebSolutions.DatePicker"
    TagPrefix="ews" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

    
<asp:Content ID="Content1" ContentPlaceHolderID="conSearch" Runat="Server">
 <script language="javascript">
 
		
		function SendingMail(ObjectSend){
			
			data="#";
			
			<%
			    sendMail();  %>
			    ObjectSend.href = data;	
		}
	</script>


    &nbsp;
            <div class="AccordionPanel" >
        	    <div class="AccordionPanelTab"><b class="contentcolor">Action taken</b> </div>
        	    <div class="AccordionPanelContent">
        	      <br />
     <div style="text-align:left; height: 40px;" >
       <div> 
         <asp:Label ID="Label1" runat="server" Text="Workorder ID"></asp:Label>
        
&nbsp;<asp:TextBox ID="txtWorkOrderID"  runat="server" Height="16px" Width="185px" ></asp:TextBox>
      </div>
         <br />
         
         <div>
           <asp:Label ID="Label2" runat="server" Text="Assigned Employeename"></asp:Label>
             
&nbsp; <asp:DropDownList ID="drlEmployeeName" runat="server"  Width="187px"  Height ="23px"

                 AppendDataBoundItems="True" DataSourceID="dsEmployee" 
                 DataTextField="EmployeeName" DataValueField="EmployeeId" >
              <asp:ListItem Value="-1">--- Choose Category ---</asp:ListItem>
    
         </asp:DropDownList>
             
             <asp:ObjectDataSource ID="dsEmployee" runat="server" SelectMethod="GetEmployees" 
                 TypeName="Service.ReferenceData.ReferenceDataServiceSupplier" 
                 OldValuesParameterFormatString="original_{0}">
             </asp:ObjectDataSource>
        </div>
        <br />
        <div>
              <asp:Label ID="Label3" runat="server" Text="Start Date"></asp:Label>      
&nbsp;
         
          <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtStartDate" runat="server" DateFormatString="MM/dd/yyyy"  
                                                 />    
                                        </ContentTemplate>
          </asp:UpdatePanel>--%>
          

         <asp:TextBox ID="txtStartDate" runat="server" Width="76px"></asp:TextBox>
            <asp:Image ID="imgCalendar" runat="server" ImageUrl="~/images/calendar.png" />
            <cc2:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtStartDate" PopupButtonID="imgCalendar">
            </cc2:CalendarExtender> 

        </div>
        
        <br />
        <div >
        <asp:Label ID="Label4" runat="server" Text="End Date" ></asp:Label>
&nbsp; &nbsp; 
            <asp:TextBox ID="txtEndDate" runat="server" Width="76px"></asp:TextBox>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calendar.png" />
            <cc2:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtEndDate" PopupButtonID="Image1">
            </cc2:CalendarExtender> 

      </div> 
     
      <br />
      <div>   <asp:Label ID="Label5" runat="server" Text="Task Status"></asp:Label>
             

&nbsp;<asp:TextBox ID="txtStatus" runat="server" Height="16px" Width="185px" ></asp:TextBox>
        </div>
             <br />
             <div style="height: 30px" align="right">

                 <asp:Button CssClass="btnexpress" BorderStyle="Dotted" ID="bntSearch" 
                     runat="server" Text="Search" onclick="bntFilter_Click" />
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             </div>
             <div>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;             
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             
					<a href="#" name="mailsending" onclick="SendingMail(this);"> 
					<%--<strong>SendMail</strong>--%>
                    <img src="images/outLook.bmp" style="width: 26px; height: 31px;" </a>
             </div>
         </div>
     </div> 
 </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="m_contentBody" Runat="Server">
      
    <body>
    
         <asp:TextBox ID="txtHiddenSoftwareId" runat="server" Width="77px" 
            Visible="False"></asp:TextBox>                          
    <div id="containerright" class="containerright">
          <div id="TabbedPanels1" class="TabbedPanels" >
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">List ActionTaken</li>
                  <li class="TabbedPanelsTab" tabindex="1">Edit actionTaken</li>
                <%--  <li class="TabbedPanelsTab" tabindex="1">The list of spare part in this action taken</li>--%>
                </ul>
              <div class="TabbedPanelsContentGroup" >

                  <div class="TabbedPanelsContent" >
                   
               
<table>
<%--<tr><td align="center" class="BigLabel" >
         <asp:Label ID="lblTotalProblem" runat="server" Text="Label"></asp:Label>
        </td></tr>
        --%>
        
        <tr>
                <td style="width:100px"></td> 
                <%--<td style="text-align:center"><a  href ="ActionTaken.aspx"  ><strong> The list of Action taken</strong></a></td>                --%>
                <td style="text-align:center"><strong> <asp:Label ID ="lblActionTaken" runat ="server" Text ="The list of Action taken"></asp:Label></strong></td>
         </tr>
         <tr style="height:20px">
            <td > </td>
            <td > </td>
         </tr>
         <tr>
                <td style="width:100px"></td>
                <td style="text-align:center"><strong> <asp:Label ID ="lblConfirmation" runat ="server" Text ="Confirmation"></asp:Label></strong></td>
         </tr>
         <tr>
                <td style="width:100px"></td>
                <td style="text-align:center"><asp:Label ID ="lblMessage" runat ="server" Text ="Are you sure to delete the information on spare part with:  ? "></asp:Label></td>
         </tr>
          <tr>
                <td style="width:100px"></td>
                <td style="text-align:center"><asp:Button CssClass="btnexpress" 
                  BorderStyle="Dotted" ID="btnYes" 
                     runat="server" Text="Yes" onclick="bntValidate_Click" />
                 <asp:Button CssClass="btnexpress" 
                  BorderStyle="Dotted" ID="btnNo" 
                     runat="server" Text="No" onclick="bntValidate_Click" />
                </td>
         </tr>
         <tr style="height:20px">
            <td > </td>
            <td > </td>
         </tr>
          <tr>
                <td style="width:100px"></td>
                
               <%-- <td style="text-align:center"><a href ="ActionTaken.aspx"  Name="linkSparePart"><strong> The list of spare part in this  action taken</strong></a></td>--%>
               <td style="text-align:center"><strong> <asp:Label ID ="lblSparepart" runat ="server" Text ="The list of spare part in this  action taken"></asp:Label></strong></td>
                 
         </tr>
   
    <%--gridView show Data (ListActionTaken)  --%>   
    
    <tr> <td style="width:100px"></td>
    
    <td align="center" class="BigLabel" style="text-align:center" >
         <asp:Label ID="lblTotalActionTaken" runat="server" Text=""></asp:Label>
        </td></tr>
    <tr >        
             <td  align="center" class="GridItem"  style="text-align:center;height:10px" >
             <asp:GridView ID="grdListActionTaken1" visible ="false" runat="server" 
                     AllowPaging="True" Width="700px" 
                     Height="30px" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" 
                    CssClass="GridItem"
                    DataSourceID="dsMessage" 
                    CellPadding="0" ForeColor="#333333" GridLines="None" PageSize="2">
                 <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                 <RowStyle BackColor="#EFF3FB" />
                 <SelectedRowStyle BackColor="#FF5050" />
                  <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                        
                 <Columns>
                     <asp:BoundField DataField="Label" />
                 </Columns>
             
                 <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
                 
</asp:GridView >           
                 <asp:ObjectDataSource ID="dsMessage" runat="server" SelectMethod="GetMessage" 
                     TypeName="DirectService"></asp:ObjectDataSource>
                   <br />
             </td>    
         </tr>       
        
<tr>  <asp:TextBox ID="txtHiddenWhereClause" runat="server" Height="17px" Width="205px" Visible="False"></asp:TextBox>
       <asp:TextBox ID="txthiddenOrderbyClause" runat="server"  Width="77px" Visible="false" ></asp:TextBox>
</tr>
<tr><td align="center" class="GridItem"  style="text-align:left">

<td>
<asp:UpdatePanel ID="updatePanelEquipment" runat="server">
            <ContentTemplate>
            
<div style="height:350px; width:730px; overflow:auto">
                <asp:GridView ID="grdListActionTaken" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" 
                    CssClass="GridItem" DataSourceID="dsListActionTaken" 
                    RowHeaderColumn="EquipmentId" Width="90%" PageSize="8">
                    <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                    <Columns>
                     <asp:CommandField ShowSelectButton="True" />
                         
                          <%--<asp:TemplateField>
                            <ItemTemplate>
                                <a  title="Delete" href="javascript:confirmDelete('ActionTaken.aspx?delete=true&tabIndex=0&taskinworkorderId=<%# DataBinder.Eval(Container.DataItem,"taskinworkorderId")%>&pageIndex=<%=GetPageIndex()%>')">
                                <img border="0" height="15" src="images/del.png" width="15"> </img></a>
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>--%>
                        
                         
                        <asp:TemplateField HeaderText="ID Action taken" 
                            SortExpression="TASKINWORKORDERID">
                            <ItemTemplate>
                                <%# Eval("reparationID")%>
                            </ItemTemplate>
                            <ItemStyle Width="50px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("reparationID") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID workorder" SortExpression="WORKORDERID">
                            <ItemTemplate>
                                <%# Eval("WORKORDERID")%>
                            </ItemTemplate>
                              <ItemStyle Width="10px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("WORKORDERID") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID Planning" SortExpression="PlanningID">
                            <ItemTemplate>
                                <%# Eval("PlanningID")%>
                            </ItemTemplate>
                              <ItemStyle Width="10px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("PlanningID") %>' 
                                    ></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Assigned Employee" SortExpression="EMPLOYEENAME">
                            <ItemTemplate>
                                <%# Eval("EMPLOYEENAME")%>
                            </ItemTemplate>
                             <ItemStyle Width="150px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox2" runat="server" Text='<%# Bind("EMPLOYEENAME") %>' 
                                    ></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Start Date" SortExpression="STARTDATE">
                                <ItemTemplate>
                                <%# Eval("STARTDATE")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox3" runat="server" Text='<%# Bind("STARTDATE") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="End Date" SortExpression="ENDDATE">
                          <ItemTemplate>
                                <%# Eval("ENDDATE")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox4" runat="server" Text='<%# Bind("ENDDATE") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                      
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Duration" SortExpression="DURATIONINMINUT">
                         <ItemTemplate>
                                <%# Eval("DURATIONINMINUT")%>
                            </ItemTemplate>
                            <ItemStyle Width="15px" HorizontalAlign="Right" />
                          
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox5" runat="server" Text='<%# Bind("DURATIONINMINUT") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>  
                                          
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Status" SortExpression="TASKSTATUS">                              
                         <ItemTemplate>
                                <%# Eval("TASKSTATUS")%>
                            </ItemTemplate>
                         <ItemStyle Width="30px" />
                              
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox6" runat="server" Text='<%# Bind("TASKSTATUS") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>                      
                       
                        </asp:TemplateField>
                        
                         <asp:TemplateField HeaderText="Description" SortExpression="DESCRIPTION">                              
                         <ItemTemplate>
                               <%-- <%# Eval("DESCRIPTION")%>--%>
                              <asp:label ID="Label7" runat="server"
                                                      text="Detail"
                                                      tooltip='<%# Eval ( "DESCRIPTION" ) %>' />
                            </ItemTemplate>
                             <ItemStyle Width="15px" HorizontalAlign="Center" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox7" runat="server" Text='<%# Bind("DESCRIPTION") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>                      
                       
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
                </asp:GridView>
                <asp:ObjectDataSource ID="dsListActionTaken" runat="server" 
                    SelectMethod="GetActionTakenDiplayed" TypeName="DirectServiceActionTaken" 
                    >
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtHiddenWhereClause" Name="whereclause" 
                            PropertyName="Text" Type="String" />
                        <asp:Parameter Name="orderclause" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
 </div>   
        	    </ContentTemplate>
        	    </asp:UpdatePanel>
        	    </td>
                   
         </td></tr>
         
        <%-- End ListActionTaken--%>    
        
</table>                 
             </div>
                     <div class="TabbedPanelsContent" >
                            <iframe  class="FrameDimension" src="ActionTakenAddNew.aspx?&actionTakenId=<%=GetActionTakenId()%>" frameborder="0" ></iframe></div>
                     <%-- <div class="TabbedPanelsContent" >
                            <iframe  class="FrameDimension" src="ActionTakenAddNew.aspx?&problemId=<%=GetProblemId()%>" frameborder="0" ></iframe></div>--%>
          </div>
    </div>
 </div>
 
 </body>
 
 <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    
 </script>
      
</asp:Content>

